package bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author wanghao7@asiainfo-linkage.com
 * @created on Dec 5, 2012 2:39:26 PM
 * @version
 * @since jdk1.5
 * @description
 */
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class Topic extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7015978712852121382L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer topicId;
	@Column(length = 100)
	private String topicTitle;
	@Temporal(TemporalType.TIMESTAMP)
	private Date topicTime;
	private Integer topicViews;

	public Integer getTopicId() {
		return topicId;
	}

	public void setTopicId(Integer topicId) {
		this.topicId = topicId;
	}

	public String getTopicTitle() {
		return topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}

	public Date getTopicTime() {
		return topicTime;
	}

	public void setTopicTime(Date topicTime) {
		this.topicTime = topicTime;
	}

	public Integer getTopicViews() {
		return topicViews;
	}

	public void setTopicViews(Integer topicViews) {
		this.topicViews = topicViews;
	}
}
